import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        govRegionList: [],
        govRegionMap: {},
        locationMap: {},
        typeSelection: [
            { value: "111", label: "DVR编码" },
            { value: "112", label: "视频服务器编码" },
            { value: "113", label: "编码器编码" },
            { value: "114", label: "解码器编码" },
            { value: "115", label: "视频切换矩阵编码" },
            { value: "116", label: "音频切换矩阵编码" },
            { value: "117", label: "报警器编码" },
            { value: "118", label: "网络视频录像机(NVR)编码" },
            { value: "130", label: "混合硬盘录像机(HVR)编码" },
          ],
          networkOptions: [
            { value: "0", label: "监控报警专网(0)" },
            { value: "1", label: "监控报警专网(1)" },
            { value: "2", label: "监控报警专网(2)" },
            { value: "3", label: "监控报警专网(3)" },
            { value: "4", label: "监控报警专网(4)" },
            { value: "5", label: "公安信息网" },
            { value: "6", label: "政务网" },
            { value: "7", label: "Internet网" },
            { value: "8", label: "社会资源接入网" },
          ],
          industryOptions: [
            { value: "00", label: "社会治安路面接入" },
            { value: "40", label: "农林牧渔业接入" },
          ],
    },
    getters: {
        govRegionList: state => {
            return state.govRegionList
        },
        govRegionMap: state => {
            return state.govRegionMap
        },
        locationMap: state =>{
            return state.locationMap
        },
        typeSelection: state=>{
            return state.typeSelection
        },
        networkOptions: state =>{
            return state.networkOptions
        },
        industryOptions: state =>{
            return state.industryOptions
        }
    },
    mutations: {

    },
    actions: {

    }
})

export default store